package ocpjp.cap2.instanceOf;

//Baseado no livro OCP Java SE 6 Programmer Practice Exams (Cap1)

class A{}

class B extends A{}

class C extends B{}

public class Test1 {
	public static void main(String[] args) {
		
//		A a = new A();
//		B b = new B();
//		C c = new C();
//		if(a instanceof A);
//		if(a instanceof B);
//		if(b instanceof A);
//		if(b instanceof (B)C);
//		if(c instanceof (A));
//		if(c instanceOf A);
//		if(c instanceof a);
//		if(B instanceof A);
	
	//Quais linhas compilam?
	
	}
}
